package com.cloud.sample.core.constant;

public enum CoreErrorCode implements BaseErrorCode {
    SERVER_ERROR(510, "服务异常");

    private Integer code;
    private String message;


    CoreErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public boolean equals(Integer v) {
        return this.code.equals(v);
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

}
